package week5;

import java.util.Scanner;

public class q1 {
    public static void main(String[] args) {
        //Circle c=new Circle();
        //Circle c1 = new Circle(3,0);

        //System.out.println(c.printArea(10.0));
        //System.out.println(c1.printArea());
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter radius: ");
        Circle c = new Circle(sc.nextDouble());
        System.out.println("圆的面积为: " + c.printArea());

        Circle c1;
        c1 = new Circle(5.0);
        System.out.println(c1.printArea(10.0));

    }
}
